package com.hzit.page.controller;

import com.hzit.page.service.IPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@RestController
@RequestMapping
public class PageController {
	@Autowired
	private IPageService pageService;

	@GetMapping("/page/createPage/{goodsId}")
	public void createPage(@PathVariable("goodsId") Long goodsId) throws IOException {
		pageService.createPage(goodsId);
	}
}
